package com.changgou.goods.dao;

import com.changgou.goods.pojo.Category;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface CategoryMapper extends Mapper<Category> {


    /**
     * 商品列表分类
     */
    @Select("SELECT * FROM tb_category WHERE parent_id = #{parentId }")
    public List<Map> findParentID(@Param("parentId") Integer categoryName);
}
